#define _CRT_SECURE_NO_WARNINGS   1;
#include"queue.h"

int main()
{
	SQ Q;
	QueueInit(&Q);
	QPush(&Q, 1);
	QPush(&Q, 2);
	QPush(&Q, 3);
	QPush(&Q, 4);
	QPush(&Q, 5);
	QPush(&Q, 6);
	printf("%d\n", QSize(&Q));
	printf("%d\n", GetQFront(&Q));
	printf("%d\n", GetQBack(&Q));
	while (!QIsEmpty(&Q))
	{
		printf("%d\n", GetQFront(&Q));
		QPop(&Q);
	}
	QueueDestory(&Q);
	return 0;
}